package ch.pizzapp.kurier.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class UserData implements Parcelable {

	@JsonProperty("type")
	String type;
	@JsonProperty("status")
	String status;
	@JsonProperty("customerID")
	String customerID;
	@JsonProperty("firstName")
	String firstName;
	@JsonProperty("lastName")
	String lastName;
	@JsonProperty("company")
	String company;
	@JsonProperty("street")
	String street;
	@JsonProperty("houseNr")
	String houseNr;
	@JsonProperty("plz")
	String plz;
	@JsonProperty("city")
	String city;
	@JsonProperty("eMail")
	String eMail;
	@JsonProperty("creditMemo")
	String creditMemo;
	@JsonProperty("message")
	String message;

	@JsonProperty("phoneNo")
	String phoneNo;

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCustomerID() {
		return this.customerID;
	}

	public void setCustomerID(String customerID) {
		this.customerID = customerID;
	}

	public String getFirstName() {
		return this.firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return this.lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getStreet() {
		return this.street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getHouseNr() {
		return this.houseNr;
	}

	public void setHouseNr(String houseNr) {
		this.houseNr = houseNr;
	}

	public String getPlz() {
		return this.plz;
	}

	public void setPlz(String plz) {
		this.plz = plz;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getEMail() {
		return this.eMail;
	}

	public void setEMail(String eMail) {
		this.eMail = eMail;
	}

	public String getCreditMemo() {
		return this.creditMemo;
	}

	public void setCreditMemo(String creditMemo) {
		this.creditMemo = creditMemo;
	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getPhoneNo() {
		return this.phoneNo;
	}

	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}

	protected UserData(Parcel in) {
		type = in.readString();
		status = in.readString();
		customerID = in.readString();
		firstName = in.readString();
		lastName = in.readString();
		company = in.readString();
		street = in.readString();
		houseNr = in.readString();
		plz = in.readString();
		city = in.readString();
		eMail = in.readString();
		creditMemo = in.readString();
		message = in.readString();
		phoneNo = in.readString();
	}

	public UserData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(type);
		dest.writeString(status);
		dest.writeString(customerID);
		dest.writeString(firstName);
		dest.writeString(lastName);
		dest.writeString(company);
		dest.writeString(street);
		dest.writeString(houseNr);
		dest.writeString(plz);
		dest.writeString(city);
		dest.writeString(eMail);
		dest.writeString(creditMemo);
		dest.writeString(message);
		dest.writeString(phoneNo);
	}

	public static final Parcelable.Creator<UserData> CREATOR = new Parcelable.Creator<UserData>() {
		public UserData createFromParcel(Parcel in) {
			return new UserData(in);
		}

		public UserData[] newArray(int size) {
			return new UserData[size];
		}
	};
}